import Vue from 'vue'
import Vuex from 'vuex'





import createPersistedState from "vuex-persistedstate"

import { User } from "./modules/user"

import {getters} from './getters'
import { Menu } from './modules/menu'
import {Resource} from './modules/resource'

Vue.use(Vuex)

export default new Vuex.Store({  
  plugins: [createPersistedState({
    storage: window.localStorage,
    key:'store'
  })],


  modules: {
   
    User,
    Resource,
    Menu
  },
    

  getters
})

